package com.yidu.qx.domain;

import javax.persistence.*;
import java.util.Objects;

/**
 * @program: jurisdiction
 * @description:
 * @author: 张超
 * @create: 2019-09-25 10:23
 */
@Entity
@Table(name = "qx_module", schema = "ZC", catalog = "")
public class QxModuleEntity {
    private String modId;
    private String modName;
    private String modSite;
    private String modState;
    private Long modSor;
    private String modComment;

    @Id
    @Column(name = "mod_id")
    public String getModId() {
        return modId;
    }

    public void setModId(String modId) {
        this.modId = modId;
    }

    @Basic
    @Column(name = "mod_name")
    public String getModName() {
        return modName;
    }

    public void setModName(String modName) {
        this.modName = modName;
    }

    @Basic
    @Column(name = "mod_site")
    public String getModSite() {
        return modSite;
    }

    public void setModSite(String modSite) {
        this.modSite = modSite;
    }

    @Basic
    @Column(name = "mod_state")
    public String getModState() {
        return modState;
    }

    public void setModState(String modState) {
        this.modState = modState;
    }

    @Basic
    @Column(name = "mod_sor")
    public Long getModSor() {
        return modSor;
    }

    public void setModSor(Long modSor) {
        this.modSor = modSor;
    }

    @Basic
    @Column(name = "mod_comment")
    public String getModComment() {
        return modComment;
    }

    public void setModComment(String modComment) {
        this.modComment = modComment;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QxModuleEntity that = (QxModuleEntity) o;
        return Objects.equals(modId, that.modId) &&
                Objects.equals(modName, that.modName) &&
                Objects.equals(modSite, that.modSite) &&
                Objects.equals(modState, that.modState) &&
                Objects.equals(modSor, that.modSor) &&
                Objects.equals(modComment, that.modComment);
    }

    @Override
    public int hashCode() {
        return Objects.hash(modId, modName, modSite, modState, modSor, modComment);
    }
}